package com.inphase.myfood.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.inphase.myfood.dao.MemberDao;
import com.inphase.myfood.dao.base.BaseDaoImpl;
import com.inphase.myfood.model.Member;

@Repository("memberDao")
public class MemberDaoImpl extends BaseDaoImpl<Member, Long> implements MemberDao {

	public Member getUserLoginInfo(String userLoginName) {
		String hql = "from User user where user.userLoginName = ?";
		List<Member> users = getHibernateTemplate().find(hql, userLoginName);
		return users.get(0);
	}
	

}
